package offerv1;

public class Offer17 {

    public int[] printNumbers(int n) {
        int count = (int) (Math.pow(10, n) - 1);
        int[] nums = new int[count];
        for (int i = 1; i <= count; i++) {
            nums[i - 1] = i;
        }
        return nums;
    }
}
